package com.example.demo.controller;

import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class ymlController {

    @Autowired
    private Student student;
    @Autowired
    private ObTypes obTypes;
    @Value("${my.key3}")
    private String mykey3;
    @Value("${my.key4}")
    private Integer mykey4;
    @PostConstruct
    public void init(){
        System.out.println("mykey3"+mykey3);
        System.out.println("mykey4"+mykey4);
        System.out.println("student"+student);
        System.out.println("Obtypes"+obTypes);
    }


}
